projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6a4e68
)
tests: Fix print-editor
author
Alexander Mikhaylenko
<alexm@gnome.org>
Sun, 10 May 2020 20:59:25 +0000
(
01:59
+0500)
committer
Alexander Mikhaylenko
<alexm@gnome.org>
Sun, 10 May 2020 21:17:42 +0000
(
02:17
+0500)
Don't assume GtkWindow is a container.
tests/print-editor.c
patch
|
blob
|
history
diff --git
a/tests/print-editor.c
b/tests/print-editor.c
index a0a8fde4ee38c755209c95a5cc62261a2d30985b..646f3fe93f4f23d6a98393de7a179eb07973f167 100644
(file)
--- a/
tests/print-editor.c
+++ b/
tests/print-editor.c
@@
-748,7
+748,7
@@
activate (GApplication *app)
update_title (GTK_WINDOW (main_window));
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_
container_add (GTK_CONTAINER
(main_window), box);
+ gtk_
window_set_child (GTK_WINDOW
(main_window), box);
/* Create document */
sw = gtk_scrolled_window_new (NULL, NULL);